import { get, post, post_json } from '@/http/axios'
export default {
  namespaced: true,
  state: {
    // 栏目数据
    confirmorderData:[]
  },
  mutations: {
    SET_COMFIRMDATA(state, payload){
      state.confirmorderData = payload
    }
  },
  actions: {
    // 获取全部订单的数据
    async getAllComfirmOrderData({commit}, payload){
      let res = await get('/order/pageQuery', payload)
    //   console.log(res);
      commit('SET_COMFIRMDATA', res.data.data.list)
    }
  }
}